<script setup>
import {transactions_store} from "@/global_store";
import {onMounted, onUnmounted} from "vue";

let remembered_file_list_width = transactions_store.file_list.width;

onMounted(() => {
    remembered_file_list_width = transactions_store.file_list.width;
    transactions_store.file_list.width = 0;
})

onUnmounted(() => {
    transactions_store.file_list.width = remembered_file_list_width;
})

</script>

<template>
    <el-drawer direction="ltr" size="80%" v-model="transactions_store.aside_drawer">
        <slot/>
    </el-drawer>
</template>

<style scoped lang="scss">

</style>